<cfcomponent>
	<cffunction name="currentView" output="true" returntype="String">
		<cfreturn session.view>
	</cffunction>
<!---  --->
	<cffunction name="event" output="true" returntype="Any" hint="Triggers an event and returns the response (if any)">
		<cfargument name="eventName" required="true" type="string">
		<cfargument name="values" required="false" type="struct">

		<cf_triggerEvent event="#arguments.eventName#" attributeCollection=#arguments.values#>
	</cffunction>
<!---  --->
	<cffunction name="subViewURL" access="remote" returntype="String">
		<cfargument name="subViewName" required="true" type="string">
		<cfargument name="values" default="#structNew()#" required="false" type="struct">

		<cfreturn "#application.URL#/view/#session.view#/display.cfc?method=#arguments.subViewName#&#application.globalFunctions.structToURL(arguments.values)#">
	</cffunction>
<!---  --->
	<cffunction name="URLappScript" output="true" returntype="String">
		<cfreturn "#application.URL#/app/application.js">
	</cffunction>
<!---  --->
	<cffunction name="URLviewScript" output="true" returntype="String">
		<cfreturn "#application.URL#/view/#session.view#/script.js">
	</cffunction>
<!---  --->
</cfcomponent>